]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-scroll-view: Fix style
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 12 Dec 2013 01:35:21 +0000 (20:35 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 12 Dec 2013 01:36:44 +0000 (20:36 -0500)
src/st/st-scroll-view.c

index 7b76b07abd4d524cbc3af2f9485931dce3c5a601..9df81735e5365329380d5b72924224b1cad4f033 100644 (file)
@@ -598,36 +598,36 @@ st_scroll_view_allocate (ClutterActor          *actor,
    */
 
   /* Vertical scrollbar */
-    if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
-      {
-        child_box.x1 = content_box.x1;
-        child_box.x2 = content_box.x1 + sb_width;
-      }
-    else
-      {
-        child_box.x1 = content_box.x2 - sb_width;
-        child_box.x2 = content_box.x2;
-      }
-    child_box.y1 = content_box.y1;
-    child_box.y2 = content_box.y2 - (hscrollbar_visible ? sb_height : 0);
+  if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
+    {
+      child_box.x1 = content_box.x1;
+      child_box.x2 = content_box.x1 + sb_width;
+    }
+  else
+    {
+      child_box.x1 = content_box.x2 - sb_width;
+      child_box.x2 = content_box.x2;
+    }
+  child_box.y1 = content_box.y1;
+  child_box.y2 = content_box.y2 - (hscrollbar_visible ? sb_height : 0);
 
-    clutter_actor_allocate (priv->vscroll, &child_box, flags);
+  clutter_actor_allocate (priv->vscroll, &child_box, flags);
 
   /* Horizontal scrollbar */
-    if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
-      {
-        child_box.x1 = content_box.x1 + (vscrollbar_visible ? sb_width : 0);
-        child_box.x2 = content_box.x2;
-      }
-    else
-      {
-        child_box.x1 = content_box.x1;
-        child_box.x2 = content_box.x2 - (vscrollbar_visible ? sb_width : 0);
-      }
-    child_box.y1 = content_box.y2 - sb_height;
-    child_box.y2 = content_box.y2;
+  if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
+    {
+      child_box.x1 = content_box.x1 + (vscrollbar_visible ? sb_width : 0);
+      child_box.x2 = content_box.x2;
+    }
+  else
+    {
+      child_box.x1 = content_box.x1;
+      child_box.x2 = content_box.x2 - (vscrollbar_visible ? sb_width : 0);
+    }
+  child_box.y1 = content_box.y2 - sb_height;
+  child_box.y2 = content_box.y2;
 
-    clutter_actor_allocate (priv->hscroll, &child_box, flags);
+  clutter_actor_allocate (priv->hscroll, &child_box, flags);
 
   /* In case the scrollbar policy is NEVER or scrollbars should be
    * overlayed, we don't trim the content box allocation by the